// ----------------------------------
// RSDK Project: Sonic 1 Forever X Doki Doki Literature Club
// Script Description: Modes
// Script Author: Christian Whitehead/Simon Thomley
// Unpacked by Rubberduckycooly's script unpacker
// ----------------------------------

//-------Aliases-------//
private alias 1 : TYPE_SEGA

// Function declarations

event ObjectDraw
	if object.propertyValue == 4

	else
		arrayPos0 = object.value0	
		SetActivePalette(1, 0, 256)
		object.inkEffect = INK_ALPHA
		temp0 = object.ypos
		temp0 -= object[arrayPos0].value15

		DrawSpriteScreenXY(object.propertyValue, object.xpos, temp0)
		SetActivePalette(0, 0, 256)
	end if
end event


event ObjectStartup
	LoadSpriteSheet("DDLCMenu/Menu.gif")
	SpriteFrame(-62, -24, 123, 48, 322, 109)
	SpriteFrame(-62, -24, 123, 48, 322, 158)
	SpriteFrame(-62, -24, 123, 48, 322, 207)
	SpriteFrame(-62, -24, 123, 48, 390, 484)
	SpriteFrame(-62, -24, 123, 48, 390, 533)
end event

event RSDKDraw
	DrawSprite(0)
end event

event RSDKLoad
	LoadSpriteSheet("Global/Display.gif")
	SpriteFrame(-16, -16, 32, 32, 1, 143)
end event
